package query

import (
	"ssdevice/common/dto"
)

type SysProtoQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo
	Id          int    `form:"id" search:"type:exact;column:id;table:sys_protocol"`
	IdList      []int  `form:"idList" search:"type:in;column:id;table:sys_protocol"`
	Label       string `form:"label" search:"type:contains;column:label;table:sys_protocol"`
	Value       string `form:"value" search:"type:exact;column:value;table:sys_protocol"`
	GateProduct string `form:"gateProduct" search:"type:exact;column:gate_product;table:sys_protocol"`
}

func (m *SysProtoQuery) GetNeedSearch() interface{} {
	return *m
}
